﻿// Decompiled with JetBrains decompiler
// Type: MT5Trade.Models.TradeModel
// Assembly: MT5Trade, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 8045A2CB-DBD6-41AD-8804-F98CAC1BDC8D
// Assembly location: C:\projects\trade\trade_tool\trade0812\MT5Trade.dll

using System;

namespace MT5Trade.Models;

public class TradeModel
{
  // 原有属性
  public ulong m_ticket { get; set; }
  public string m_status { get; set; } = TradeStatus.open;
  public ulong f_ticket { get; set; }
  public string f_status { get; set; } = TradeStatus.open;
  
  // 主程序中使用的属性
  public string Symbol { get; set; } = "";
  public string Type { get; set; } = "";
  public double Volume { get; set; }
  public ulong Ticket { get; set; }
  public ulong Deal { get; set; }
  public ulong PositionId { get; set; }
  public double Price { get; set; }
  public double Profit { get; set; }
  public double Swap { get; set; }
  public double Commission { get; set; }
  public double Fee { get; set; }
  public string Comment { get; set; } = "";
  public string ExternalId { get; set; } = "";
  public DateTime Time { get; set; }
  
  // Kelly计算所需的新增属性
  public DateTime CloseTime { get; set; }
  public double OpenPrice { get; set; }
  public double ClosePrice { get; set; }
  
  public ulong FollowTicket { get; set; }
  public ulong FollowPositionId { get; set; }
}
